import request from '@/utils/request'
const base_url = 'admin/user'
export default{
    getPageList(page,size,searchObj){
        console.log(page,size,searchObj)
        return request({
            url:`${base_url}/${page}/${size}`,
            method:'post',
            data:searchObj
        })
    },
    lock(id,status){
        return request({
            url:`${base_url}/lock/${status}/${id}`,
            method:'put'
        })
    },
    show(userId){
        return request({
            url:`${base_url}/show/${userId}`,
            method:'get'
        })
    },
    approval(id,status){
        return request({
            url:`${base_url}/approve/${id}/${status}`,
            method:'put'
        })
    }
}